﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using db = DataContext;

namespace LogicLibrary
{
    public class Product
    {
		public static List<db.Product> GetList()
		{
			using (db.DbDataContext context = new db.DbDataContext())
			{
				return context.Product.ToList();
			}
		}

		public static int Add(db.Product product)
		{
			using (db.DbDataContext context = new db.DbDataContext())
			{
				return 0;
			}
		}

		public static db.Product Delete(int id)
		{
			using (db.DbDataContext context = new db.DbDataContext())
			{
				db.Product p = new db.Product();

				return null;
			}
		}
    }
}
